package router

import (
	"github.com/gin-gonic/gin"
	"shop/controller"
	"shop/middleware"
)

// 统一注册路由
func RegisterRoutes() *gin.Engine {

	r := gin.New()
	r.Use(middleware.Cors)

	r.POST("/login", controller.LoginByUsernameAndPassword)
	return r
}
